(function(){
    'use strict';

    angular
        .module('hengha.blue')
        .controller('HomeController', HomeController)
        .controller('NodeController', NodeController)
        .controller('CategoriesController', CategoriesController);

    function HomeController($scope, $http) {
        console.log('HomeController');
        $http.get('nodes').success(function(data){
            $scope.items=data;
        });
    }

    function CategoriesController($scope, $http){
        console.log('CategoriesController');
    }

    function NodeController($scope, $http){
        console.log('NodeController');
    }

})()
